//
//  OrderList.swift
//  vmes
//
//  Created by 志鹏 翟 on 2021/11/28.
//

import Foundation
struct OrderList : Codable {
    let code : Int?
    let rows : [OrderItem]?
    let msg : String?
}

struct OrderItem : Codable,Equatable {
    static func == (lhs: OrderItem, rhs: OrderItem) -> Bool {
        return lhs.compId == rhs.compId &&
        lhs.id == rhs.id &&
        lhs.workshopId == rhs.workshopId
    }
    
    let acqOutput: Int?
    let acqRejectNumber: Int?
    let actualEndTime : String?
    let actualStartTime : String?
    let compId : String?
    
    let createBy : String?
    let createTime : String?
    let equipCode : String?
    let equipId : String?
    let equipName : String?
    
    let fixtureCode : String?
    let fixtureName : String?
    let id : String?
    let planEndTime: String?
    let planStartTime: String?
    let procedureType: String?
    let procedureNo : String?
    let productCode : String?
    let productName: String?
    
    let qcRejectNumber : Int?
    let remarkInfo: String?
    let scheduleNumber : Int?
    let shiftPlanOutput : Int?
    let statusFlag : String?
    let materialText : String?
    let materialColo : String?
    
    let tbBShiftWork: ShiftWork?
    let tbCCustomers: TbcCustomers?
    let updateBy: String?
    let updateTime : String?
    let workorderCode: String?
    let workreportOutput : Int?
    let workreportRejectNumber: Int?
    let workshopId : String?
    
    //同开工量
    let workreportOutputCount: Int?
    //自动总量
    let acqOutputCount: Int?
    
}

struct ShiftWork : Codable{
    let acqOutput : Int?
    let id : String?
    let workshopId : String?
    let compId : String?
    let remark : String?
    let batchNumber : String?
    let className : String?
    let workType : String?
    let isAutoWork : Int?
    let batchOrder : Int?
    
}

struct TbcCustomers : Codable{
    let remark:String?
    let id:String?
    let compId:String?
    let clientInfo:String?
    let orderNum:String?
    let productName:String?
    let planOutput:String?
    let productionDepartment:String?
    let typeSpecification:String?
    let coreLength:Double?
    let technicalStandard:String?
    let customParameter:String?
    let productId:String?
    let measuringUnit:String?
    
}



